package ld.oauth.blog.service.file;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface FileService {


    /**
     * 文件上传
     * @param file
     * @return
     */
    String uploadFile(MultipartFile file);

    public void downloadFile(String filePath, HttpServletResponse response);

    /**
     * 删除图片
     * @param fileUrl
     */
    void deleteImg(String fileUrl) throws Exception;
}
